package byx.container.annotation.ConditionalTest.a;

import byx.container.annotation.annotation.Conditional;
import byx.container.core.Container;
import java.util.function.Predicate;

@Conditional(MyPredicate5.class)
public class F {
    private final A a;
    private final E e;

    public F(A a, E e) {
        this.a = a;
        this.e = e;
    }

    public A getA() {
        return a;
    }

    public E getE() {
        return e;
    }
}

class MyPredicate5 implements Predicate<Container> {
    @Override
    public boolean test(Container container) {
        return container.exist(A.class) && container.exist(E.class);
    }
}
